package com.doubao.notepad_blog_backend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Builder
@TableName("bms_post_tag")
@Accessors(chain = true)
@ApiModel("文章关联标签实体")
public class BmsPostTag implements Serializable {
    private static final long serialVersionUID = -5028599844989220715L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Integer id;

    @TableField("tag_id")
    @ApiModelProperty("标签ID")
    private String tagId;

    @TableField("post_id")
    @ApiModelProperty("文章ID")
    private String postId;
}

